package com.xintai.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysUser;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 生产线基建，二级项目对象 pub_jijianerji
 * 
 * @author xintai
 * @date 2020-12-23
 */
public class PubJijianerji extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long jjId;

    /** 名称 */
    @Excel(name = "名称")
    private String jjName;

    /** 备注 */
    @Excel(name = "备注")
    private String jjRemark;

    /** 维护人ID */
    private Long userId;

    @Excel(name = "维护人", targetAttr = "nickName", type = Excel.Type.EXPORT)
    private SysUser sysUser;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date jjTime;

    /** 生产线ID */
    private Long workshopId;

    /** 生产线实体类 */
    @Excel(name = "生产线", targetAttr = "workshopName", type = Excel.Type.EXPORT)
    private PubWorkshop pubWorkshop;

    /**是否删除， 不删除，0  正常可用，1 删除禁用， 但可关联查询*/
    private int jjIsDel;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getJjId() {
        return jjId;
    }

    public void setJjId(Long jjId) {
        this.jjId = jjId;
    }

    public String getJjName() {
        return jjName;
    }

    public void setJjName(String jjName) {
        this.jjName = jjName;
    }

    public String getJjRemark() {
        return jjRemark;
    }

    public void setJjRemark(String jjRemark) {
        this.jjRemark = jjRemark;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Date getJjTime() {
        return jjTime;
    }

    public void setJjTime(Date jjTime) {
        this.jjTime = jjTime;
    }

    public Long getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Long workshopId) {
        this.workshopId = workshopId;
    }

    public PubWorkshop getPubWorkshop() {
        return pubWorkshop;
    }

    public void setPubWorkshop(PubWorkshop pubWorkshop) {
        this.pubWorkshop = pubWorkshop;
    }

    public int getJjIsDel() {
        return jjIsDel;
    }

    public void setJjIsDel(int jjIsDel) {
        this.jjIsDel = jjIsDel;
    }

    @Override
    public String toString() {
        return "PubJijianerji{" +
                "jjId=" + jjId +
                ", jjName='" + jjName + '\'' +
                ", jjRemark='" + jjRemark + '\'' +
                ", userId=" + userId +
                ", sysUser=" + sysUser +
                ", jjTime=" + jjTime +
                ", workshopId=" + workshopId +
                ", pubWorkshop=" + pubWorkshop +
                ", jjIsDel=" + jjIsDel +
                '}';
    }
}
